<div class="content-table">
<div class="content-table-title"><?=$this->title?></div>
<div class="form-edit">

<?php if($this->msg):?>
<div class="replace"><?=$this->msg?></div>
<?php endif;?>

<form action="/bk/profile-submit" method="post" name="form1" onsubmit="return submitform(this)">
修改密码：<input type="password"  name="pwd" id="pwd">  <font>*</font><br/>
再次确认：<input type="password" name="pwd2" id="pwd2">  <font>*</font><br/>
<input type="submit" class="buttonlong" value="确认" />
<br /><br />
</form>
</div>
<br/><br/>
</div>

<script>
function num(th){
	th.value = th.value.replace(/[^\d]*$/g, '');	
}

function submitform() 
{
	if( document.form1.pwd.value.length == 0 )
	{
		alert("密码不能为空");
		return false;
	}else if( document.form1.pwd2.value.length == 0 )
	{
		alert("密码需输入两遍以确认");
		return false;
	}else if( document.form1.pwd2.value != document.form1.pwd.value )
	{
		alert("两次输入的密码不一致");
		return false;
	}
	
	form1.submit();
}
</script>
